package com.practice.ajCollections010.list.linkedlist;

import java.util.LinkedList;
import java.util.List;

/**
 * LinkedList 初始化实例
 */
public class Init {

    public static void main(String[] args) {
        List<String> linkedlist = new LinkedList<>();
        linkedlist.add("Hello");

        List<String> linkedlist2 = new LinkedList<>(linkedlist);
        linkedlist2.stream().forEach(item -> {
            System.out.println(item);
        });
    }
}
